package com.qiguliuxing.dts.service.seckill.model;

import com.qiguliuxing.dts.common.type.SeckillStatusEnum;
import lombok.Data;

/**
 * 秒杀状态
 *
 * @author 1197673878@qq.com
 * @category 秒杀状态
 * @since 2020年10月13日 上午12:00:34
 */
@Data
public class SeckillStatus {

    private int status;

    private String seckillMsg;

    public SeckillStatus() {
        super();
    }

    public SeckillStatus(SeckillStatusEnum statusEnum) {
        super();
        this.status = statusEnum.getStatus();
        this.seckillMsg = statusEnum.getDesc();
    }
}
